package com.lucian.ge.dao.shop;

//import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Lucicol on 2019/8/14.
 */
public interface PartnerMapper {
    List<Map<String,String>> selectIncome(@Param("userId")Integer userId);

    List<Map<String,String>> selectRecharge(@Param("userId")Integer userId);

    List<Map<String,String>> selectProfit(@Param("userId")Integer userId);

    //查询UserId
    String selectUserId(@Param("userId")Integer userId);

    //添加合伙人信息
    void insertUserId(@Param("userId")Integer userId,@Param("mingzi")String mingzi,@Param("shouji")String shouji,@Param("weixin")String weixin,@Param("shenfenzheng")String shenfenzheng);

    //查询可提现余额
    String selectYuE(@Param("userId")Integer userId);

    //申请提现
//    void insertTiXian(@Param("userId")Integer userId,@Param("status")Integer status);

    void insertTiXian(@Param("userId") Integer userId,@Param("tixianjine") String tixianjine,@Param("name") String name, @Param("tixianhao") String tixianhao);

    //查询可结算
    String selectJieSuan(@Param("userId")Integer userId);

    //查询订单,客户付款金额,佣金
    List<Map<String,String>> selectDinDan(@Param("userId")Integer userId,@Param("timerang")Integer timerang);

    //查询提现记录
    List<Map<String,String>> drawRecords(@Param("userId")Integer userId);

    //查询下级收益信息
    List<Map<String,String>> selectXiaJiShouYi(@Param("userId")Integer userId,@Param("timerang") Integer timerang);
}
